package cn.bandeqing.store.entity;

import cn.bandeqing.frame.mybatis.config.InsertOrUpdateListener;
import cn.bandeqing.frame.mybatis.entity.BaseEntity;
import cn.bandeqing.store.req.StoreSaveOrUpdateReq;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;

import java.math.BigDecimal;
import java.sql.Timestamp;

import io.github.linpeilie.annotations.AutoMapper;
import lombok.*;
import lombok.experimental.SuperBuilder;

/**
 * 门店 实体类。
 *
 * @author fugui
 * @since 2024-01-04
 */
@EqualsAndHashCode(callSuper = true)
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@Table(value = "bdq_store", onUpdate = InsertOrUpdateListener.class, onInsert = InsertOrUpdateListener.class)
@AutoMapper(target = StoreSaveOrUpdateReq.class, convertGenerate = false)
public class Store extends BaseEntity {

    /**
     * 门店ID
     */
    @Id(keyType = KeyType.Auto)
    private Long storeId;

    /**
     * 门店名称
     */
    private String storeName;

    /**
     * 门店地址
     */
    private String storeAddress;

    /**
     * 门店地址 经度
     */
    private Double storeAddressLat;

    /**
     * 门店地址 维度
     */
    private Double storeAddressLng;

    /**
     * 店主用户ID
     */
    private Long shopkeeperUsId;
    private Double shopkeeperRate;
    private String shopkeeperUsNickName;

    /**
     * 店长用户ID
     */
    private Long storeManagerUsId;
    private Double storeManagerRate;
    private String storeManagerUsNickName;

    private String douyinPoiId;

    /**
     * 城市合伙人用户ID
     */
    private Long cityPartnerUsId;
    private Double cityPartnerRate;
    private String cityPartnerUsNickName;

    private String cityCode;
    private String cityName;

}
